//
//  UIView+Layer.m
//  道路实况
//
//  Created by 马红涛 on 14/11/18.
//  Copyright (c) 2014年 马红涛. All rights reserved.
//

#import "UIView+Layer.h"

@implementation UIView (Layer)

+(void)SetRoundedCorners:(UIView *)View
         andcornerRadius:(CGFloat)cornerRadius
          andborderWidth:(CGFloat)borderWidth
          andborderColor:(UIColor *)borderColor
{
    View.layer.masksToBounds = YES;
    View.layer.cornerRadius = cornerRadius;
    View.layer.borderWidth = borderWidth;
    View.layer.borderColor = [borderColor CGColor];
}


+(void)SetshadowView:(UIView *)View
         shadowColor:(UIColor *)color
        shadowOffset:(CGSize) size
       shadowOpacity:(float) Opacity
        shadowRadius:(float) Radius
{
    View.layer.shadowColor = color.CGColor;
    View.layer.shadowOffset = size;
    View.layer.shadowOpacity = Opacity;
    View.layer.shadowRadius = Radius;
}

@end
